package it.polimi.traveldream.web;

import it.polimi.traveldream.GestionePacchettoLocal;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;


@ManagedBean(name="gestionepagamento")
@SessionScoped
public class GestionePagamento {
	
	
	@EJB
	private GestionePacchettoLocal gs;
	
	public String paga(){
		System.out.print("entrato metodo paga");
		gs.salvaindb();
		System.out.print("creazione avvenuta 1");
		return "/users/index.xhtml";
	}

}
